guint settings_signal_id;
int icon_size;
+#if 0
GdkDragContext *shortcuts_drag_context;
GSource *shortcuts_drag_outside_idle;
+#endif
/* Flags */
guint changing_folder : 1;
guint shortcuts_current_folder_active : 1;
guint shortcuts_current_folder_is_volume : 1;
+
+#if 0
guint shortcuts_drag_outside : 1;
+#endif
};
/* Signal IDs */
GdkDragContext *context,
GtkFileChooserDefault *impl)
{
+#if 0
impl->shortcuts_drag_context = g_object_ref (context);
+#endif
}
+#if 0
/* Removes the idle handler for outside drags */
static void
shortcuts_cancel_drag_outside_idle (GtkFileChooserDefault *impl)
g_source_destroy (impl->shortcuts_drag_outside_idle);
impl->shortcuts_drag_outside_idle = NULL;
}
+#endif
/* GtkWidget::drag-end handler for the shortcuts list. */
static void
GdkDragContext *context,
GtkFileChooserDefault *impl)
{
+#if 0
g_object_unref (impl->shortcuts_drag_context);
shortcuts_cancel_drag_outside_idle (impl);
gtk_button_clicked (GTK_BUTTON (impl->browse_shortcuts_remove_button));
impl->shortcuts_drag_outside = FALSE;
+#endif
}
/* GtkWidget::drag-data-delete handler for the shortcuts list. */
g_signal_stop_emission_by_name (widget, "drag-data-delete");
}
+#if 0
/* Creates a suitable drag cursor to indicate that the selected bookmark will be
* deleted or not.
*/
shortcuts_cancel_drag_outside_idle (impl);
return FALSE;
}
+#endif
/* GtkWidget::drag-leave handler for the shortcuts list. We unhighlight the
* drop position.
guint time_,
GtkFileChooserDefault *impl)
{
+#if 0
if (gtk_drag_get_source_widget (context) == widget && !impl->shortcuts_drag_outside_idle)
{
impl->shortcuts_drag_outside_idle = g_idle_source_new ();
G_OBJECT (impl)));
g_source_attach (impl->shortcuts_drag_outside_idle, NULL);
}
+#endif
gtk_tree_view_set_drag_dest_row (GTK_TREE_VIEW (impl->browse_shortcuts_tree_view),
NULL,
GtkTreeViewDropPosition pos;
GdkDragAction action;
+#if 0
if (gtk_drag_get_source_widget (context) == widget)
{
shortcuts_cancel_drag_outside_idle (impl);
impl->shortcuts_drag_outside = FALSE;
}
}
+#endif
if (context->suggested_action == GDK_ACTION_COPY || (context->actions & GDK_ACTION_COPY) != 0)
action = GDK_ACTION_COPY;
guint time_,
GtkFileChooserDefault *impl)
{
+#if 0
shortcuts_cancel_drag_outside_idle (impl);
+#endif
g_signal_stop_emission_by_name (widget, "drag-drop");
return TRUE;